package com.ciaojian.client.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ciaojian.core.mapper.HairArchiveMapper;
import com.ciaojian.core.model.HairArchive;
import com.ciaojian.core.service.HairArchiveService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author oxiny
 */
@AllArgsConstructor
@Service
public class HairArchiveServiceImpl extends HairArchiveService {
    private final HairArchiveMapper hairArchiveMapper;

    /**
     * 根据uid分页
     *
     * @param page   分页插件
     * @param userId /
     * @return /
     */
    public Page<HairArchive> pageByUid(Page<HairArchive> page, Integer userId) {
        return hairArchiveMapper.pageByUid(page, userId);
    }
}
